package com.simple.simple_view.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.simple.simple_view.domain.ResponseResult;
import com.simple.simple_view.domain.dto.VideoDto;
import com.simple.simple_view.domain.entity.Video;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


/**
 * 视频表(Video)表服务接口
 *
 * @author makejava
 * @since 2023-10-26 16:08:15
 */
@Service
public interface VideoService extends IService<Video> {
    void uploadFile(MultipartFile file) throws IOException;

    ResponseResult uploadVideo(VideoDto videoDto) throws Exception;

    ResponseResult getVideoPage(int currentPage, int pageSize);

    ResponseResult getVideoInfo(int videoId);
}
